package cn.tedu.spring.di;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * @Author: Miyako
 * @Date: 2024-08-02-11:27
 * @Description:
 */

@Repository
public class TestUserDao {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.di");
        UserService bean = context.getBean(UserService.class);

        System.out.println(bean.toString());
    }
}
